#ifndef LED_H
#define LED_H

//ARM 开发板LED设备的路径
#define RLED_DEV_PATH "/sys/class/leds/red/brightness"
#define GLED_DEV_PATH "/sys/class/leds/green/brightness"
#define BLED_DEV_PATH "/sys/class/leds/blue/brightness"
#define LED_MAX_NUM  3
struct led_info
{
    int led_fd[LED_MAX_NUM];            // led的描述符
    unsigned char led_open_num;         // 打开了几个led
};


int led_init();
void led_exit();
int get_led_lightness(unsigned char number);
int write_led_lightness(unsigned char number, unsigned char brightness);
#endif